<!DOCTYPE html>
<html>
<head>
    <title>设备维护计划变更表</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <Row :gutter="16" style="margin: 8px 0px 0px 1px">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.ticketCode" @on-enter="query" placeholder="工单编号"/>
                </i-col>
                <i-col span="3">
                    <Date-Picker type="daterange" v-model="dataTime" split-panels placeholder="时间查询" style="width: 200px" @on-change="dataChange"></Date-Picker>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
        </Row>
        <Row :gutter="16" style="margin: 3px 0px 0px 0px;">
            <div class="buttons-group">
                #if($shiro.hasPermission("devmaintenanceplanchange:save"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
                #end
                #if($shiro.hasPermission("devmaintenanceplanchange:update"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                #end
                #if($shiro.hasPermission("devmaintenanceplanchange:delete"))
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
                #end
            </div>
        </Row>
        <Row :gutter="16" style="margin: 8px 0px 0px 1px;">
            <i-col :xs="3" :sm="3" :md="3" :lg="3">
                <div class="leftHeight">
                    <div class="workShops">
                        <p class="text-center" style="font-size: 15px;">工厂/基地</p>
                    </div>
                    <div id="storeLayer" style="margin-top: 25px">
                        <ul id="storeTree" class="ztree"></ul>
                    </div>
                </div>
            </i-col>
            <i-col :xs="21" :sm="21" :md="21" :lg="21">
                <table id="jqGrid"></table>
            </i-col>
        </Row>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
        <i-form ref="formValidate" :model="devMaintenancePlanChange" :rules="ruleValidate" :label-width="80">
            <Row>
                <i-col span="11">
                    <Form-item label="备注" prop="remark">
                        <i-input v-model="devMaintenancePlanChange.remark" placeholder="备注"/>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="最近一次修改时间" prop="gmtModified">
                        <i-input v-model="devMaintenancePlanChange.gmtModified" placeholder="最近一次修改时间"/>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="创建时间" prop="gmtCreate">
                        <i-input v-model="devMaintenancePlanChange.gmtCreate" placeholder="创建时间"/>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="进度" prop="progress">
                        <i-input v-model="devMaintenancePlanChange.progress" placeholder="进度"/>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="申请人" prop="applier">
                        <i-input v-model="devMaintenancePlanChange.applier" placeholder="申请人"/>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="变更时间" prop="changeTime">
                        <i-input v-model="devMaintenancePlanChange.changeTime" placeholder="变更时间"/>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="原因" prop="reason">
                        <i-input v-model="devMaintenancePlanChange.reason" placeholder="原因"/>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="事项" prop="item">
                        <i-input v-model="devMaintenancePlanChange.item" placeholder="事项"/>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="工单ID" prop="ticketId">
                        <i-input v-model="devMaintenancePlanChange.ticketId" placeholder="工单ID"/>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="变更类别，分为延期申请和变更审批" prop="type">
                        <i-input v-model="devMaintenancePlanChange.type" placeholder="变更类别，分为延期申请和变更审批"/>
                    </Form-item>
                </i-col>
            </Row>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
                <i-button type="info" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
    </Card>
</div>
<script src="${rc.contextPath}/js/device/devmaintenanceplanchange.js?_${date.systemTime}"></script>
</body>
</html>
